In C language, operators are symbols that represent operations to be performed on one or more operands. They are the basic components of C programming. In this article, we will learn about all the built-in operators in C with examples.
What is a C Operator?
An operator in C can be defined as the symbol that helps us to perform some specific mathematical, relational, bitwise, conditional, or logical computations on values and variables. The values and variables used with operators are called operands. So, we can say that the operators are the symbols that perform operations on operands.
Types of Operators in C
C language provides a wide range of operators that can be classified into 6 types based on their functionality:
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
- Conditional Operators